package com.qf.ssm.mapper;

import com.qf.ssm.entity.FrontCategoryFirst;

import java.sql.Timestamp;
import java.util.Date;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface FrontCategoryFirstMapper {
    /**
     * delete by primary key
     * @param fcfId primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(Integer fcfId);

    /**
     * insert record to table
     * @param record the record
     * @return insert count
     */
    int insert(FrontCategoryFirst record);


    /**
     * insert record to table selective
     * @param record the record
     * @return insert count
     */
    int insertSelective(FrontCategoryFirst record);

    /**
     * select by primary key
     * @param fcfId primary key
     * @return object by primary key
     */
    FrontCategoryFirst selectByPrimaryKey(Integer fcfId);

    /**
     * update record selective
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(FrontCategoryFirst record);

    /**
     * update record
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(FrontCategoryFirst record);



    /**
     * 批量插入
     * @param list
     * @return
     */
    int batchInsert(List<FrontCategoryFirst> list);

    /**
     * 一对多展示二级分类
     * @param fcfId
     * @return
     */
    FrontCategoryFirst selectFirstAndTwo(@Param("fcfId") int fcfId);

    /**
     * 通过分类名称查看商品所有信息
     */
    FrontCategoryFirst selectFirstAndCommodity(@Param("fName") String fName);

    /**
     * 批量伪删除
     */
    int batchDeleteCategory(@Param("fcfIds") int[] fcfIds);



}